package com.linewell.service;


import com.linewell.pojo.Administrator;
import com.linewell.pojo.Msg;
import com.linewell.pojo.UserInfo;
import org.apache.catalina.User;

import java.util.List;

/**
 * @Title: ssm2
 * @description:
 * @author: hyuhuang@linewell.com
 * @since:2018/1/17 8:36
 */
public interface IUserService {

    UserInfo checkPunsterName(String punsterName);

    UserInfo checkNamePwd(String punsterName, String password);

    Msg saveUserInfo(UserInfo userInfo);

    boolean uploadUserPicture(String picture, Long userId);

    Msg getHotUser(int page);

    Administrator checkAdmin(String punsterName, String password);

    Msg updataUserInfo(String userId, String nickName, String sex, String birthday, String userEmail, String myself);

    Msg changePwd(Long userId, String oldPwd, String newPwd);

    List<UserInfo> getUsers(int page, int limit);

    int getUserCount();

    List<UserInfo> getUsersByPunsterName(String keyword);

    Msg deleteAllUser(String userIds);

    Msg deleteUserByUserId(Long userId);

    Msg updateUserState(Long userId, int state);

    Msg updateUser(String field, String value, Long userId);
}
